已知函数$f(x) = \sin (\omega x + \phi)$，如图A，B是直线$y = \frac{1}{2}$与曲线$y = f(x)$的两个交点，若$\abs{AB} = \frac{\pi}{6}$，则$f(\pi) = \underline{\hspace{4em}}$.

\begin{figure}[H]
    \centering
    \includegraphics[width=0.3\textwidth]{src/assets/q14.jpg}
\end{figure}